library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity boma_led is
    port(
            clk : in std_logic;                             --系统时钟
            rst : in std_logic;                             --系统复位端
        dip_key : in std_logic_vector(7 downto 0);          --拨码开关状态读取端口
            led : out std_logic_vector(7 downto 0)          --LED控制端口
         );
end boma_led;

architecture behav of boma_led is
begin
process(dip_key,clk)
begin
    if rst = '0' then
        led <= "11111111";
    elsif rising_edge(clk) then
	         led <=  dip_key;
    end if;
end process;
end behav;

